package com.hcy.performancepro.util;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ResultData<T> {
    private Integer code;
    private String message;
    private Object data;

    public static ResultData<Object> ok(Object data){
        return new ResultData<>(200,"success",data);
    }

    public static ResultData<Object> error(String message,Object data){
        return new ResultData<>(-1,message,data);
    }
}
